<?php

App::import('Controller','Config.BaseConfig');
class DealConfigController extends BaseConfigController
{
	var $name = 'DealConfig';
	var $abstractView = "config.generic_config";
	var $configModelAlias = "DealConfig";
	function admin_setting()
	{
		$this->pageTitle = sprintf(__("Deals Configuration"));
		if(!checkSessionKeyForDeals())
		{
			$this->warningMsg(__("You haven't entered a license for Deals addon yet. Please add the license."));
			$this->redirect('/admin/config/generic_config/setting/License');
		}
		parent::admin_setting("Deal");
	}
	
}